openapi: "3.0.0"
info:
  title: "inventory API"
  description: "inventory API"
  version: "1.0.0"
servers:
- url: "https://localhost:8080"
paths:
  /api/auth/login:
    post:
      description: ""
      requestBody:
        content:
          '*/*':
            schema: {}
        required: true
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/auth/register:
    post:
      description: ""
      requestBody:
        content:
          '*/*':
            schema: {}
        required: true
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/components:
    get:
      description: ""
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
    post:
      description: ""
      requestBody:
        content:
          '*/*':
            schema: {}
        required: true
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/components/{id}:
    delete:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
    get:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#4:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#5:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
    put:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      requestBody:
        content:
          '*/*':
            schema: {}
        required: true
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/components/{id}/verify:
    post:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/components/serial/{serial}:
    get:
      description: ""
      parameters:
      - name: "serial"
        in: "path"
        required: true
        schema:
          type: "string"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#4:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/components/types:
    get:
      description: ""
      responses:
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/computers:
    get:
      description: ""
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#4:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#5:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
    post:
      description: ""
      requestBody:
        content:
          '*/*':
            schema: {}
        required: true
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/computers/{id}:
    delete:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
    get:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#4:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#5:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#6:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#7:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/computers/{id}/components:
    get:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#4:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/computers/{id}/verify:
    put:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/computers/serial/{serial}:
    get:
      description: ""
      parameters:
      - name: "serial"
        in: "path"
        required: true
        schema:
          type: "string"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#4:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#5:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#6:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/locations:
    get:
      description: ""
      responses:
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/locations/{id}:
    delete:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
    post:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "string"
      requestBody:
        content:
          '*/*':
            schema:
              $ref: "#/components/schemas/CreateLocationRequest"
        required: true
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/locations/{id}/components:
    get:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/users/{id}:
    delete:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
    get:
      description: ""
      parameters:
      - name: "id"
        in: "path"
        required: true
        schema:
          type: "integer"
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#2:
                  description: ""
                  value:
                    success: false
                    message: "null"
                Example#3:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
  /api/users/me:
    get:
      description: ""
      responses:
        "400":
          description: "Bad Request"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiError"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: false
                    message: "null"
        "200":
          description: "OK"
          content:
            '*/*':
              schema:
                $ref: "#/components/schemas/ApiSuccess_T"
              examples:
                Example#1:
                  description: ""
                  value:
                    success: true
                    data: "null"
components:
  schemas:
    ApiError:
      type: "object"
      properties:
        success:
          type: "boolean"
        message:
          type: "string"
      required:
      - "message"
    ApiSuccess:
      type: "object"
      properties:
        success:
          type: "boolean"
    ApiSuccess_T:
      type: "object"
      properties:
        success:
          type: "boolean"
    CreateLocationRequest:
      type: "object"
      properties:
        name:
          type: "string"
      required:
      - "name"